package service;


import dao.UserDao;
import dao.User;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@Component("service")
public class UserServiceimpl implements UserService {

    public UserDao getDao() {
        return dao;
    }
    @Resource
    public void setDao(UserDao dao) {
        this.dao = dao;
    }

    private UserDao dao;
    //上机3
    public String save(User user){
        return  dao.save();
    }
}
